SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

create procedure dbo.DnnProduct_GetSkin

@SkinRoot               nvarchar(50),
@PortalID		int,
@SkinType               int

as
	
select *
from	dbo.DnnProduct_Skins
where   SkinRoot = @SkinRoot
and     SkinType = @SkinType
and     ( PortalID is null or PortalID = @PortalID )
order by PortalID desc









GO
